#!/usr/bin/python
# -*- coding: UTF-8 -*-
import re
phone = "2004-959-559 # 这是一个国外电话号码"
num = re.sub(r'#.*$',"",phone)
print "电话号码是: ",num
num1 = re.sub(r'\D',"",phone)
print "电话号码是 : ", num


